$(function () { 
  $.ajax({
    url: "http://localhost:3000/api/getcoupon",
    success: function (res) {
      $('.coupon-item').html(template('tmp', res))
    }
  });
 })